package myCine.alloCine.model.app.criteriaOfSearch;


/**
 * Criteria of search for a movie
 * Let param = null if you dont need it
 */
public class MovieCriteria {
	
	/*=========================
	 * 	  SEARCH PARAMS
	 *=========================*/
	
	private Integer productionYearEqualOrHigher = null;
	/** Movie Rate */
	private Double userRatingEqualOrHigher = null;
	
	/** Number of users who give a rate */
	private Integer userRatingCountEqualOrHigher = null;
	
	/*=========================
	 * 		CONSTRUCTOR
	 *=========================*/
	
	public MovieCriteria(
			final Integer productionYearEqualOrHigher,
			final Double userRatingEqualOrHigher,
			final Integer userRatingCountEqualOrHigher) {
		
		this.productionYearEqualOrHigher = productionYearEqualOrHigher;
		this.userRatingEqualOrHigher = userRatingEqualOrHigher;
		this.userRatingCountEqualOrHigher = userRatingCountEqualOrHigher;
	}
	
	/*=========================
	 * 		GEST/SET/IS
	 *=========================*/

	public Double getUserRatingEqualOrHigher() {
		return userRatingEqualOrHigher;
	}
	public Integer getProductionYearEqualOrHigher() {
		return productionYearEqualOrHigher;
	}
	public void setProductionYearEqualOrHigher(Integer productionYearEqualOrHigher) {
		this.productionYearEqualOrHigher = productionYearEqualOrHigher;
	}
	public void setUserRatingEqualOrHigher(Double userRatingEqualOrHigher) {
		this.userRatingEqualOrHigher = userRatingEqualOrHigher;
	}
	public Integer getUserRatingCountEqualOrHigher() {
		return userRatingCountEqualOrHigher;
	}
	public void setUserRatingCountEqualOrHigher(Integer userRatingCountEqualOrHigher) {
		this.userRatingCountEqualOrHigher = userRatingCountEqualOrHigher;
	}

	
}
